package cn.cs.mapper;

import cn.cs.pojo.CsProduct;
import cn.cs.vo.DmFloorItems;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CsProductMapper {

    public CsProduct getCsProductById(@Param(value = "id") Long id) throws Exception;

    public List<CsProduct> getCsProductListByMap(Map<String, Object> param) throws Exception;

    public Integer getCsProductCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertCsProduct(CsProduct csProduct) throws Exception;

    public Integer updateCsProduct(CsProduct csProduct) throws Exception;

    public Integer deleteCsProductById(@Param(value = "id") Long id) throws Exception;

    public Integer batchDeleteCsProduct(Map<String, List<String>> params);

    public List<DmFloorItems> queryProductByFloor() throws Exception;

    public List<CsProduct> getHotCsProductList(Map<String, Object> param) throws Exception;

    public List<CsProduct> getProductByMonth(Map<String, Object> params) throws Exception;

    public List<CsProduct> getHotCsProductListForEs(Map<String, Object> param) throws Exception;

}
